package bocchi.general;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.files.FileHandle;

import java.nio.charset.StandardCharsets;

public class ResourceLoader {
    public static boolean has(String path) {
        return Gdx.files.internal(path).exists();
    }

    public static String read(String path) {
        return Gdx.files.internal(path).readString(String.valueOf(StandardCharsets.UTF_8));
    }
}
